package org.zhb.querysql.websocket.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.portlet.ModelAndView;

@Controller
@RequestMapping("/sock/")
public class SockController {

	@RequestMapping("echo")
	public ModelAndView toEcho() {
		System.out.println("重复");
		return new ModelAndView("sock/echo");
	}

	@RequestMapping("reverse")
	public ModelAndView toReverse() {
		return new ModelAndView("sock/reverse");
	}

	@RequestMapping("snake")
	public ModelAndView toSnake() {
		System.out.println("贪吃蛇");
		return new ModelAndView("sock/snake");
	}
}
